<template>
  <div>
    <!-- 头部 -->
    <cart-manage-header :innerMenu="innerMenu" />

    <!-- 表格 -->
    <cart-manage-table :innerMenu="innerMenu" />

    <!-- 添加车辆对话框 -->
    <cart-manage-add-cart />

    <!-- 车辆详情对话框 -->
    <cart-manage-cart-deatil />

    <!-- 修改车辆对话框 -->
    <cart-manage-edit-cart />

    <!-- 删除车辆对话框 -->
    <cart-manage-delete-cart />
  </div>
</template>

<script>
import cartManageHeader from './cpns/cart_manage_header.vue'
import cartManageTable from './cpns/cart_manage_table.vue'
import cartManageAddCart from './cpns/cart_manage_addCart.vue'
import cartManageCartDeatil from './cpns/cart_manage_cartDeatil.vue'
import cartManageEditCart from './cpns/cart_manage_editCart.vue'
import cartManageDeleteCart from './cpns/cart_manage_deleteCart.vue'
import { getCacheInnerMenu } from '@/utils/menu'

export default {
  components: {
    cartManageHeader,
    cartManageTable,
    cartManageAddCart,
    cartManageCartDeatil,
    cartManageEditCart,
    cartManageDeleteCart
  },
  data() {
    return {
      innerMenu: {}
    }
  },
  created() {
    this.innerMenu = getCacheInnerMenu(this.$route.meta.id);
    // console.log('车辆管理权限', this.innerMenu)
  }
}
</script>

<style scoped></style>
